package com.zxl.muban.util;

/**
 * @Author: bo-feifei
 * @Date 2024/2/17 2:15
 * @Version 1.0
 */
public class RedisConstants {

    public final static String USER_REGISTER_TIME = "USER:REGISTER:TIME:";

    public final static String USER_REGISTER_CODE = "USER:REGISTER:CODE:";

    public final static String USER_LOGIN_CODE = "USER:LOGIN:CODE:";

    public final static String USER_UPDATE_CODE = "USER:UPDATE:CODE:";

    public final static String USER_FORGET_CODE = "USER:FORGET:CODE:";

    public static String getUserRegisterCodeKey(String phone) {
        return USER_REGISTER_CODE + phone;
    }
    public static String getUserRegisterTime(String phone) {
        return USER_REGISTER_TIME + phone;
    }
    public static String getUserLoginCodeKey(String phone) {
        return USER_LOGIN_CODE + phone;
    }
    public static String getUserUpdateCodeKey(String phone) {
        return USER_UPDATE_CODE + phone;
    }

    public static String getUserForgetCodeKey(String phone) {
        return USER_FORGET_CODE + phone;
    }
}
